//package org.flowers.unbeaten.resource;
//
//import org.activiti.engine.ActivitiException;
//import org.apache.commons.io.IOUtils;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.io.InputStream;
//import java.nio.charset.StandardCharsets;
//
///**
// * @description 获取流程编辑器左侧菜单栏
// * @author RyanWang
// * @date 2021-07-23 10:43:06
// * @version 1.0
// */
//@RestController
//@RequestMapping("/service")
//public class ModelEditorToolRestResource {
//
//    /**
//     * 获取流程配置的JSON文件
//     * @return
//     */
//    @ResponseBody
//    @GetMapping(value = "/editor/stencilset", produces = "application/json;charset=utf-8")
//    public String getStencilset() {
//        InputStream stencilsetStream = this.getClass().getClassLoader().getResourceAsStream("stencilset.json");
//        try {
//            return IOUtils.toString(stencilsetStream, StandardCharsets.UTF_8);
//        } catch (Exception e) {
//            throw new ActivitiException("Error while loading stencil set", e);
//        }
//    }
//}
